package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户资金流水记录对象 sys_user_billcash
 *
 * @author Ericcc
 * @date 2021-03-11
 */
public class SysUserBillcash extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商家流水记录id */
    private Long billcashId;

    /** 相关订单号 */
    @Excel(name = "相关订单号")
    private String ridCode;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户号 */
    @Excel(name = "用户号")
    private Integer userCode;

    /** 通道id */
    @Excel(name = "通道id")
    private Long channelId;

    /** 通道名称 */
    @Excel(name = "通道名称")
    private String channelName;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String loginName;

    /** 变动方向（0.支付，1.代付，2.手动增加，3.手动减少，4.佣金，5.其他） */
    @Excel(name = "变动方向", readConverterExp = "0=支付,1=代付,2=手动增加,3=手动减少,4=佣金,5=其他")
    private Integer billcashType;

    /** 原金额 */
    @Excel(name = "原金额")
    private BigDecimal amount;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private BigDecimal changeAmount;

    /** 变动后金额 */
    @Excel(name = "变动后金额")
    private BigDecimal lastAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String billcashRemark;

    public void setBillcashId(Long billcashId)
    {
        this.billcashId = billcashId;
    }

    public Long getBillcashId()
    {
        return billcashId;
    }
    public void setRidCode(String ridCode)
    {
        this.ridCode = ridCode;
    }

    public String getRidCode()
    {
        return ridCode;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserCode(Integer userCode)
    {
        this.userCode = userCode;
    }

    public Integer getUserCode()
    {
        return userCode;
    }
    public void setChannelId(Long channelId)
    {
        this.channelId = channelId;
    }

    public Long getChannelId()
    {
        return channelId;
    }
    public void setChannelName(String channelName)
    {
        this.channelName = channelName;
    }

    public String getChannelName()
    {
        return channelName;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setBillcashType(Integer billcashType)
    {
        this.billcashType = billcashType;
    }

    public Integer getBillcashType()
    {
        return billcashType;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setChangeAmount(BigDecimal changeAmount)
    {
        this.changeAmount = changeAmount;
    }

    public BigDecimal getChangeAmount()
    {
        return changeAmount;
    }
    public void setLastAmount(BigDecimal lastAmount)
    {
        this.lastAmount = lastAmount;
    }

    public BigDecimal getLastAmount()
    {
        return lastAmount;
    }
    public void setBillcashRemark(String billcashRemark)
    {
        this.billcashRemark = billcashRemark;
    }

    public String getBillcashRemark()
    {
        return billcashRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("billcashId", getBillcashId())
                .append("ridCode", getRidCode())
                .append("userId", getUserId())
                .append("userCode", getUserCode())
                .append("channelId", getChannelId())
                .append("channelName", getChannelName())
                .append("loginName", getLoginName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("billcashType", getBillcashType())
                .append("amount", getAmount())
                .append("changeAmount", getChangeAmount())
                .append("lastAmount", getLastAmount())
                .append("billcashRemark", getBillcashRemark())
                .toString();
    }
}